package cn.edu.nchu.fragmentdemo.bean;

import android.content.Context;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.misc.BaseDaoEnabled;
import com.j256.ormlite.table.DatabaseTable;

import cn.edu.nchu.fragmentdemo.db.dao.MarkerDao;


@DatabaseTable(tableName = "marker")
public class Marker extends BaseDaoEnabled {

    @DatabaseField(columnName = "id", generatedId = true)
    private Integer id;
    @DatabaseField(columnName = "uk")
    private String uk;
    @DatabaseField(columnName = "group_id", canBeNull = false, foreign = true)
    private MarkerGroup markerGroup;
    @DatabaseField(columnName = "marker_name")
    private String markerName;
    @DatabaseField(columnName = "icon_name")
    private String iconName;

    public Marker() {

    }

    public Marker(Context context) {
        setDao(MarkerDao.getmarkerDao(context));
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUk() {
        return uk;
    }

    public void setUk(String uk) {
        this.uk = uk;
    }

    public MarkerGroup getMarkerGroup() {
        return markerGroup;
    }

    public void setMarkerGroup(MarkerGroup markerGroup) {
        this.markerGroup = markerGroup;
    }

    public String getMarkerName() {
        return markerName;
    }

    public void setMarkerName(String markerName) {
        this.markerName = markerName;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }
}
